package com.ruoyi.project.distribute.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 单据信息对象 hos_documentmsg
 * 
 * @author ruoyi
 * @date 2021-03-22
 */
public class HosDocumentmsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单据ID */
    @Excel(name = "单据ID")
    private String documentlogId;

    /** 药品ID */
    @Excel(name = "药品ID")
    private Long drugId;

    /** 数量 */
    @Excel(name = "数量")
    private Integer documentmsgNum;

    /** 批发总金额 */
    @Excel(name = "批发总金额")
    private Integer documentmsgTotal;

    /** 批次号 */
    @Excel(name = "批次号")
    private String documentlogBatch;

    /** 入库状态（0=入库成功 1=作废 2=待审核） */
    @Excel(name = "入库状态", readConverterExp = "0==入库成功,1==作废,2==待审核")
    private String status;

    private HosDrug hosDrug;

    private HosCompany hosCompany;

    public HosDrug getHosDrug()
    {
        return hosDrug;
    }

    public void setHosDrug(HosDrug hosDrug)
    {
        this.hosDrug = hosDrug;
    }

    public HosCompany getHosCompany()
    {
        return hosCompany;
    }

    public void setHosCompany(HosCompany hosCompany)
    {
        this.hosCompany = hosCompany;
    }

    public void setDocumentlogId(String documentlogId)
    {
        this.documentlogId = documentlogId;
    }

    public String getDocumentlogId() 
    {
        return documentlogId;
    }
    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }

    public Integer getDocumentmsgNum()
    {
        return documentmsgNum;
    }

    public void setDocumentmsgNum(Integer documentmsgNum)
    {
        this.documentmsgNum = documentmsgNum;
    }

    public Integer getDocumentmsgTotal()
    {
        return documentmsgTotal;
    }

    public void setDocumentmsgTotal(Integer documentmsgTotal)
    {
        this.documentmsgTotal = documentmsgTotal;
    }

    public void setDocumentlogBatch(String documentlogBatch)
    {
        this.documentlogBatch = documentlogBatch;
    }

    public String getDocumentlogBatch() 
    {
        return documentlogBatch;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("documentlogId", getDocumentlogId())
            .append("drugId", getDrugId())
            .append("documentmsgNum", getDocumentmsgNum())
            .append("documentmsgTotal", getDocumentmsgTotal())
            .append("documentlogBatch", getDocumentlogBatch())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
